package com.blog.cloud.service.bac.toLocal;

import java.io.IOException;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;

public class PubUtil {
	
	
	public static Document getDocument(String urlStr) {
		Document document = null;
		try {
			document = Jsoup.connect(urlStr).userAgent("Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36").get();
		} catch (IOException e) {
			e.printStackTrace();
		}
		return document;
	}

}
